home *** CD-ROM | disk | FTP | other *** search
- on initdeb
- global CheminDisk
- InitBarrette("010")
- end
-
- on keyDown
- set AccuA to charToNum(the key)
- put AccuA
- if AccuA = 13 then
- CallM("Cson")
- exit
- end if
- if (AccuA > 64) and (AccuA < 91) then
- set numLettre to AccuA - 64
- put numLettre
- set mark to getAt(["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"], numLettre)
- go(mark)
- end if
- if (AccuA > 96) and (AccuA < 123) then
- set numLettre to AccuA - 96
- put numLettre
- set mark to getAt(["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"], numLettre)
- go(mark)
- end if
- end
-
- on golettre
- global Glettre
- if Glettre <> "rien" then
- go(Glettre)
- end if
- end
-
- on vasaumot
- set mot to the text of cast the castNum of sprite (the clickOn - 4)
- set listmotexcept to ["alphabet", "camel", "deal", "gengis khan", "hero", "kazakh", "lamasery", "mafia", "name", "oil", "race", "steppe", "tail", "water"]
- repeat with i = 1 to 14
- if mot = getAt(listmotexcept, i) then
- go(char 1 of mot)
- exit
- end if
- end repeat
- go(mot)
- end
-
- on initalph
- global Glettre
- set Glettre to "a"
- genmac(1, "mgson09", "011", [20, 21, 22])
- end
-
- on genmac macson, namesound, fleche, pisteroll
- global Gpisteroll, CheminDisk
- set Gpisteroll to pisteroll
- do("initbarrette" & "(" & QUOTE & fleche & QUOTE & ")")
- updateStage()
- set fichierson to CheminDisk & ":SNDMONG:" & namesound
- set fichierson to MakeSeparator(fichierson)
- SetDcRollTexte()
- if macson = 0 then
- PlaySoundVide(1, "play", fichierson)
- updateStage()
- else
- if macson = 1 then
- PlaySoundTest(1, "play", fichierson)
- updateStage()
- else
- if macson = 2 then
- set Champs to "1 R_MOTLANGUE"
- InitRollTexte(Champs)
- end if
- end if
- end if
- end
-
- on rolltot
- global Gpisteroll, Glettre
- set pas to 24
- set calage to 8
- if the mouseV < 40 then
- puppetSprite(35, 1)
- repeat with i = 1 to 26
- if ((((i - 1) * pas) + calage) < the mouseH) * (the mouseH < ((i * pas) + calage)) then
- set the locH of sprite 35 to ((i - 1) * pas) + calage
- updateStage()
- set Glettre to getAt(["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"], i)
- exit repeat
- end if
- end repeat
- else
- set Glettre to "rien"
- puppetSprite(35, 0)
- updateStage()
- end if
- repeat with i in Gpisteroll
- if rollOver(i) then
- set the castNum of sprite i to the number of cast "CastBoutGall"
- next repeat
- end if
- set the castNum of sprite i to the number of cast "CastBoutG"
- end repeat
- end
-
- on nicsteph
- Cson()
- set Champs to "MGLAIRAK MGLARMEE MGLBANQ MGLCHAME MGLCHEVA MGLDEL MGLEAU MGLFEMME MGLFETEN MGLGENGI MGLGOBI MGLINVER MGLKAZAK MGLKHOMI MGLLAMAS MGLMASSA MGLNOM MGLSTEPP MGLTHE MGLTIBET MGLVIAND MGLVODKA MGLYAPLU MGLYOURT MGLZANAB "
- set AccuS to 5
- set CoeffV to (the bottom of sprite AccuS - the top of sprite AccuS) / 5
- set CoeffH to (the right of sprite AccuS - the left of sprite AccuS) / 5
- set AccuY to (the mouseV - the top of sprite AccuS) / CoeffV
- set AccuX to (the mouseH - the left of sprite AccuS) / CoeffH
- set AccuP to (AccuY * 5) + AccuX + 1
- set NomFichier to word AccuP of Champs
- set NomMacro to "nicstephTwice(" & QUOTE & NomFichier & QUOTE & ")"
- do(NomMacro)
- end
-
- on nicstephTwice NomFichier
- global CheminDisk
- set NomFichier to CheminDisk & ":LANGUE:" & NomFichier
- set NomFichier to MakeSeparator(NomFichier)
- PlaySoundTest(1, "Play", NomFichier)
- updateStage()
- end
-